/**
 * jims
 */
package com.jims.master.modules.drug.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

/**
 * 药品基本信息Entity
 * @author CTQ
 * @version 2017-03-02
 */
public class DrugInfo extends DataEntity<DrugInfo> {

	private static final long serialVersionUID = 1L;
	private Double packageNum;		// 包装数量
	private String packageSpec;		// 规格
	private String packageUnit;		// 单位
	private String minSpec;		// 最小单位规格
	private String minUnits;		// 最小单位
    private String firmId;    //厂家标识
	private String passNo;		// 批准文号
	private String gmp;		// GMP标识 0-否，1-是
	private String drugClass;		// 价格类型
    private String purchasePrice;   //进货价

    public String getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(String retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(String purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    private String retailPrice;   //零售价
    private String minUnitsName;   //最小单位名称
	private String packUnitName;   //包装单位名称
    private DrugDict drugDict;		// 药品字典ID
    private DrugSupplierCata  drugSupplierCata;		// 厂家标识
	public DrugInfo() {
		super();
	}

	public DrugInfo(String id){
		super(id);
	}

	public DrugDict getDrugDict() {
		return drugDict;
	}

	public void setDrugDict(DrugDict drugDict) {
		this.drugDict = drugDict;
	}

	@Length(min=1, max=20, message="规格长度必须介于 1 和 20 之间")
	public String getPackageSpec() {
		return packageSpec;
	}

	public void setPackageSpec(String packageSpec) {
		this.packageSpec = packageSpec;
	}

	@Length(min=1, max=8, message="单位长度必须介于 1 和 8 之间")
	public String getPackageUnit() {
		return packageUnit;
	}

	public void setPackageUnit(String packageUnit) {
		this.packageUnit = packageUnit;
	}

	public DrugSupplierCata getDrugSupplierCata() {
		return drugSupplierCata;
	}

	public void setDrugSupplierCata(DrugSupplierCata drugSupplierCata) {
		this.drugSupplierCata = drugSupplierCata;
	}

	@Length(min=1, max=2, message="最小单位规格长度必须介于 1 和 2 之间")
	public String getMinSpec() {
		return minSpec;
	}

	public void setMinSpec(String minSpec) {
		this.minSpec = minSpec;
	}

	@Length(min=1, max=2, message="最小单位长度必须介于 1 和 2 之间")
	public String getMinUnits() {
		return minUnits;
	}

	public void setMinUnits(String minUnits) {
		this.minUnits = minUnits;
	}

	@Length(min=1, max=11, message="包装数量长度必须介于 1 和 11 之间")
	public Double getPackageNum() {
		return packageNum;
	}

	public void setPackageNum(Double packageNum) {
		this.packageNum = packageNum;
	}

	@Length(min=0, max=30, message="批准文号长度必须介于 0 和 30 之间")
	public String getPassNo() {
		return passNo;
	}

	public void setPassNo(String passNo) {
		this.passNo = passNo;
	}

	@Length(min=0, max=1, message="GMP标识 0-否，1-是长度必须介于 0 和 1 之间")
	public String getGmp() {
		return gmp;
	}

	public void setGmp(String gmp) {
		this.gmp = gmp;
	}

	@Length(min=1, max=1, message="价格类型长度必须介于 1 和 1 之间")
	public String getDrugClass() {
		return drugClass;
	}

	public void setDrugClass(String drugClass) {
		this.drugClass = drugClass;
	}

    public String getMinUnitsName() {
        return minUnitsName;
    }

    public void setMinUnitsName(String minUnitsName) {
        this.minUnitsName = minUnitsName;
    }

	public String getPackUnitName() {
		return packUnitName;
	}

	public void setPackUnitName(String packUnitName) {
		this.packUnitName = packUnitName;
	}

    public String getFirmId() {
        return firmId;
    }

    public void setFirmId(String firmId) {
        this.firmId = firmId;
    }
}